Added new LoginPal code