Added timer and change pow function.