Update flush command to make use of respond method