Prioritized functions in Decide

Added other helper functions to the main decide function