Added delay to prevent double login. Cleaned up Background terminal output