Make run executable and remove unused function from kernel