Front end code for old AP