Add function to retrieve course config