Unstable version with the added templates handler.