Code Adapting