Changed return format for timestamp to integer.