Function can now handle keyword arguments