Header file with limit definitions, update psuedocode logic