Included cstdlib to stop exit error when compiling