Added authentication (pi availability) code