Second try, probably have to get rid of most after inputs