Advanced button now working