Added block placement check