This whole block is for debug purposes, should be removed