Update take function

This still doesn't really work because of spaces...