Added parameters check and usage message