Added mode logging