Implemented saving/loading of active materials