Remake of cmd