Moved from activites to fragments.