Last handling functionality