Added 'more than 2 params given' check and test. Thanks Igor Galićgit status