Adding the loadAfter parameter, correcting few bugs, and also change the way the load can interfer with default state loading.