Make setup handle debug as well as creating link