Implement argument checking mechanism.