Changed protected constructor to public