Updated beans and file writing.