Removed debugging, added profiling