Fix casting, some GUI strings, change pipe code