Reworked to use this as a package instead of a standalone file