Layer support in rendering module. Needs work though.