Updated binding function