Improve tech algorithm