Fixed function used to call clocktable