Added url as parameter for alm function