Added function compatibility with the GUI