Some half finished flange code (more to come later!)