Added array option to the bind method