There also seems to be no input validation in this function.