Optimized lend and return, removed bug.