Introduced check on m