Reformatted the code for the heartbeat and the inhibit
Updated the auth method to deal with the old way being depricated