Refactor seen command
Added quit command