Added a solution that was sent to me rather than Chris.