Changed doExp to also return the return type