Modified to use API v2 and fixed TimeStamp issue