Made some changes to kernel constructors