Added code form un-commitable laptop by RK.  Comited by Matt
Fixed bracket error in output
matt