Moved fact to external function. Closes #2.