Debugging code, still doesn't seem to work.