Added Helper Functions

Max x and lambda