Converted to local variable.
Implemented seekbar logic.