Changed to function, the word throw in a lambda is funky...