Added Material integration. It is not fully completed and does not fully work.