LastEpoch and FirstEpoch were replaced by the general GetEpoch() function. Unit tests were written and successfully runned.