Changed priority of save_posts action to prevent conflicts with other plugins like Advanced Custom Fields.