Aparently I got ValueFunction right on the first try... Spooky.