Resource-limiting work.

Signed-off-by: Morgan Deters <mdeters@cs.nyu.edu>