Removed redundant square root function