Refactored LnF class