Added print function which does not work