Improves function determination