Updated completePayload to take timestamp as a long (closes #35)