Adding statistics calculation to run after command is called.