Engine constructor updated