Updated bgutilities with categories