Log and retreive datestamps from the server. And remove unneeded code.