Added alignment scoring code