Making script independent