Implemented the editing of the assets and extracted global functions.