Hugh Jackman and his abs in X-Men: Days of Future Past.

The X-Men franchise has taken the time-travel route made popular by James Cameron’s Terminator movies and J.J. Abrams’ Star Trek reboot. In X-Men: Days of Future Past, Wolverine (Hugh Jackman) partakes in a unique form of time-tripping—and the result is the best film in the series since X-Men 2.

Another big contributor to the awesomeness of the latest installment is the return of Bryan Singer to the director’s chair. Singer piloted the first two X-Men films; he has a nice command of the characters in both their old and younger incarnations. It’s good to have him back.

The film starts in the future, where the likes of Professor X (Patrick Stewart), Magneto (Ian McKellen) and Wolverine have been reduced to hiding out in a dark, apocalyptic world where their enemy is a vicious robotic force called the Sentinels. Things are looking bad for the mutants.

However, Kitty Pryde (Ellen Page) has perfected a form of time travel in order to mess with the Sentinels. It involves time-traveling in one’s own mind back to a particular point in memory where the traveler can mess with the fabric of time. She can only send somebody back for a few minutes or so due to brain trauma—but then it strikes the X-Men that Wolverine has instant healing powers.

Wolverine therefore travels back to the early ’70s, before the Sentinels go into production, and before Raven/Mystique (Jennifer Lawrence) commits a murder that will doom the future. It’s a nice chance to see Wolverine with his bone claws again, and it creates an opportunity to combine the two recent X-Men casts.

Most of the action takes place in the past, so the X-Men: First Class cast gets most of the screen time. That means more of the terrific Michael Fassbender’s take on Magneto, who is being held in a prison underneath the Pentagon for allegedly having something to do with an infamous magic bullet. James McAvoy actually steals the show as young Xavier/Professor X, who has found a solution for his crippled legs—but it has a truly bad side effect.

Peter Dinklage has a pivotal role as a creator of the Sentinels; Dinklage always adds a level of class to any project. The film also allows a funny take on Richard Nixon (Mark Camacho), who finds himself in the middle of the whole mutant public-relations fiasco.

While Lawrence gets plenty of screen time as Raven, we never do see Rebecca Romijn as Mystique. We do get a brief, brief glimpse of Anna Paquin’s Rogue. (More scenes wound up on the cutting-room floor, according to Singer.) There are more than 30 seconds of Halle Berry’s Storm in the film, which means there’s more Storm in this movie than anybody really needs.

A welcome cast addition is Evan Peters as the speedy Quicksilver. One of the film’s best sequences involves how it looks to Quicksilver, through his eyes, as he rearranges a gunfight with his fingertips in a half-second. We see it in slow motion, with much comedic detail. It’s brilliant.

This film basically allows the X-Men universe to jettison X-Men: The Last Stand, a film made by Brett Ratner; it was not a favorite with fans. I didn’t hate the movie, but it stands alongside the mediocre X-Men Origins: Wolverine as one of the weakest movies in the series.

As is the case with Star Trek, the whole system has been reconfigured with X-Men, and all options are open for future films. Is there chance they can use the whole time-travel thing on the Matrix movies, and fix those screwed-up sequels?

X-Men: Days of Future Past is playing in regular and 3-D formats at theaters across the valley.