Edited getPads function to be able to work without callback