Pattern saving and loading done.