Added alf_ prefix to most functions