Moved grad check from apps to src.