Moved functions to BEngine Class 2