Changed openbet script