Changed functions to resemble GLua functions