Changed when condition to accept number of seconds as well
Revert "Change load libraries to accept local files"

This reverts commit 3c13ee5957c356fc9f64a6c7e9e3dd66b611ee8b.
Set a property to configure the number of tries for when condition