Made api consistent with options hash and added class method for sidekiq