Changed the bulk commands to command pattern.