Added some defensive coding