Moved private functions into their own folder.