Updated powerlaw calculator