Added code to try and find goals