Got basic implementation of optional arguments working