Before MoodleRest integration