Implemented some foundations.