I have changed my implementation to be more efficient. - Sai