Ugly and quick hack