Problem with functions in EP modules