Cleanup and compile