Building group controller, added an error util