Add serial ids function
Start working on curve fitting