Added cpu-wait
Initial support for custom fragments