Made some methods and variables in APNservice class private.