Added pull script, cleaned code.