This Fixes #1040 : Removing the unused function