Implemented @Vennril 's inverse loops for more performance