Adding a heartbeat to prevent Safari from sleeping. Fixes #140