Added control for shares

Signed-off-by: Arpit Goyal <agmps17@gmail.com>