Moving dictionaries before functions