Much simpler cross-platform approach.