Improved demoted command