Make setInterval which avoids instanceof