Add timeout in exec