Added Runnable functionality

Made it so general Runnables can be used.