Put code entry point in simapp.cpp