Adds testing code to see what's going on