Added binding function and type function