Changing function call for compatibility with Ubuntu 14.04