Add extensive debugging statements and set writable paths