Added support for custom bar colours and bar offset.