Updated so Phreeze is self contained with no external library dependencies