These should be moved closer to the point they are actually used.