Replaced Three function through one doing the same