Fixed stupid argument ignore bug and fixed logic in server side sub.