Added call to library(lubridate) in egs