Merge "Changing rsg to rs where functions don't rely on graphics."