Added initial formatBar code