Looping

Added in limited functionality for looping and usability