Added timer and localstorage