Added pseudocode for loader