Added an optional listener for bounds