Features/flush command

Added flush command.