Add AutoResolver

Also, I fuckin hate lambdas