Implemented routine deletion and fixed problems with fragments on screen rotation.