Edited catapult prototype code.