Algorithms environment stuff, extracted constructor to superclass