Remove dir variable to make it work anywhere