Adjusting compile and detect