Stricter API call determination

Still need to determine if this is too restrictive, in which case an
alternate method would need to be devised.