Writing functions in.