Modified detailed script related stuffs.