Algorithmic improvement and code standardization