Code is ready to integrate with processing algorithm