Use boolean for exit for portability