Add some more methods. Current implementation is way too slow.