Moved foreign predicates out of runtime.c