Simplify spider code