Added new loading sequence.
Logic for editing