Added symbol initialisation and cleanup.