Added general debugging for 500