GUI goes crazy without a number but at least the function works... sort of...