Added solution generator code. Not called.