Converted E2 functions to starfall