Changed emmiter to work with variable timestep