Also use correct inp variable