$limit should be $options. I pushed this fix to you.