Added sparse bandwidth function