Moved spectrum spark to a separate file