Added compiling user code and creating function of it.