Made some changes to fit the idea of child requirements set by Martin