Fix position listener, add debug toggle command