Carlisle man jailed for 18 years