Removed debug logs. May decide to go with a nicer solution later. This will do for now...