Hackish implementation.