Added primitive limit calculation