Added code for updating seconds