Removed unused function plus made corpus path parametrized.