Preparing inputs