Write close and read UserProfile methods