Implemented extraction script.