Jerick McKinnon has agreed to terms on a four-year, $30 million contract with the San Francisco 49ers.

The 49ers were looking for a running back after Carlos Hyde agreed to terms with the Cleveland Browns.

McKinnon ran for 570 yards and caught 51 passes for 421 yards last season with the Minnesota Vikings.