Made label function more clean.