Updated to log api access