Modified to match old selenium2 module format