Added some better error handling and fixes for mobile

Oh and also timestamp refreshing