Made all bar behaviour configurable

Change-Id: I567a24a5be2117f0be9ccd29870a07be9e8ec7f3