Simplify login and pulling functions