Modified M and N for server file