Write command working