Added loops, variables for easier usage

Added loops, variables for easier usage