Some more partly ported classes and utils