Attempt at making beeping non blocking