Add calling afterCommand after pasting action