Added Handle Command Method