Fixed pull, and implemented exit