Banged my head at code until it worked.