Reformatted function to make it clearer
Added new leak demo for bind