Almost got contract completion working. Stupid buttons.