Debugging create function