First iteration upgrading it for Elgg 1.8