Added move constructor to function.