Fixed functions used by the main site.