Added a shitload of code to allow block overwrite