Square-specific alterations to the open-source version