Improving block on write stuff to file
Begin draft of block on managing factors