Making the pebble object generation a command