Moved enter result to separate function