Implimented changes necessary for MasDennis/Rajawali/#950

Signed-off-by: Jared Woolston <jwoolston@tenkiv.com>