Added functions to court