Added simFunctions