Code improvement
Added support for MoreColors
Fixed invalid handle issues