Removed old c code