Fixed Potential Bug

It now also counts the blocks placed last to avoid too long functions.