Add in settimeout for class creation