Added way to create commands in a unified method