Added bars functions.