Added and organized all library calls.