HAYWARD | Hayward Unified School District officials said they negotiated with its teachers union into the early morning Friday to reach a tentative new two-year contract.

The negotiations which the district said ended at 3:05 a.m. Friday ended an impasse between the two sides.

The Hayward Education Association’s membership will still need to approve the deal in the next few days. If approved by teachers, the Hayward school board will vote on the pact in June.

The tentative agreement is for two years and includes a two percent boost in salary for teacher this school year and a five percent increase in 2015-16. Hourly and stipend compensation will also increase for after-school duties.

In addition, class sizes will be reduced to 24 students per classroom for kindergarten through third grade.