Added editbin function