Changed methods' permission to make public only the necessary ones