Added precompile functionality to close #1