Tried to adapt scripts to work on live server, not solved yet.