Add the lua hook.
Use fbi instead of fim, which doesn't seem to work anymore.