Modified lambda execution to ignore NAN entries