Refactor in show commad to separate properly the code of the core behaviour.