Move code from gites.skin