Added attribute to barrel class