Added measureTime for auto detecting the input values