Fix timing and stanford bug