Finished initial version of align_to_vector