Moved utilities implementation code from .h to .cpp