Half-way bug algorithms and add PDF