Merged code of working subsystem functions