Rename lambda to decay to avoid problems with the Python keyword.