Debugging and testing. Everything seems to work smoothly since I moved CUrly Brace