Improves function closure