Began refinery logic