Add the setBpm function