Refactor gives commands