Added attempt_ext and helper functions to the functions in align.c