Removed var hrmute

and changed the if - else to define muteTime to a ternary operation.