Lightning fast, but VERY hacky -- needs to be modified as soon as possible!