Added helper function for grabing motif