added reconfigurable parameter for the framerate.