Customisations copied from the old wayback fork.