Input data and first checks