Implementing preliminary algorithm into module