Changed process script to only do stuff that needs it.