Make resources a proper module