Lots of new helper functions color and byte manipulation