Change Engine constructor, Add private fields