Implemented pre/post script stuff.