Changed script file. Methods now functions