Now Prior object is accessible outside the anonymous function