Added a few utilities and fixed some bugs

Version 1.8