Updated stationary fix algorithm and added paper generation script.