Added some args checking.