Code to run on command node