Create simulator functions

It has some useful functions that can come in handy for the simulator