This version aims to align more closely with the original implementation, so it can be used in more places and support more sources.
Want to acknowledge the many contributors this time around! Big thanks to @Aquafina-water-bottle, @killergerbah, @Kuuuube, @drakargx and @ZXY101.