Cleaned up the code a little and added the filter and interp steps.