Running Gabor's algorithm