Cleaned up cursor_func call in main