Add flags for controlling loading process