Made changes to be compatible with DarkYellowEngine 0.04