Implementation for frames, environment, builtin, and define