Working on a queue based layer system but it is incomplete