Error removed from line 109
Code tidied - brackets now moved to their own line