Added code

Added code in onCommand