Fix parameters in interface and add some debug messages