Added changes from ElementalX

Added new ElementalX code from there kernel whoo hoo.