Redid everything to use the bytestring library for better performance