Made version return parameter functional