Forgot to remove some debugging code (doh!)