Bugfix -- need to pass in a pointer when sending in an array of bins
Add in arbitrary bins