Required argument exception needs some fixing