These two methods could be combined.