Update: Problem with the function