Added utility functions to call from Android