Branch ref should handle no input
localStorage.set is deprecated
Removed continuous message detection

It is a broken implementation, needs a re-think