Simplified some code; started the implementation for lazypile-close, just have to fill in the lambda.