Changes to the function trying to make it work