Removed unneeded cstdlib include and result variable