It should just use the is_sharp check. 
if(is_sharp(W))
new runtime etc