Added timestamp to query