Switch prototypes to use the binding api