Added server/client command function