Framework added, as well as a basic phase system.