Refactored out command code in List