Modified jframework.c.