Added functions that calculate parameters. Actually intreface is made for them