Change error message to debug message
Code cleanup