Replaced the deprecated stub! with stub