Initial version of both scripts