Changed repo into a generic C container